package com.crm.service.after_sale;

import java.util.List;

import org.springframework.data.domain.Pageable;

import com.crm.pojo.AftetSaleServer;
import com.crm.vo.Result;

public interface AftetSaleServerService {
	/**
	 * 根据服务编号查询售后服务
	 * @param serverId
	 * @return
	 */
	public List<AftetSaleServer> findOneNotDel(Long serverId, int curpage, int pagesize);
	
	/**
	 * 分页查询所有没有被删除的售后服务
	 * @param curpage
	 * @param pagesize
	 * @return
	 */
	public List<AftetSaleServer> findAllNotDelBypage(int curpage, int pagesize);
	
	/**
	 * 查询没有被删除的售后服务的数量
	 * @return
	 */
	public Long countAllNotDelBypage();
	
	/**
	 * 新建售后服务
	 * @param aftetSaleServer
	 * @return
	 */
	public Result addAftetSaleServe(AftetSaleServer aftetSaleServer);
	
	/**
	 * 删除售后服务
	 * @param serverId
	 * @return
	 */
	public Result delAftetSaleServe(Long serverId);

	/**
	 * 编辑售后服务
	 * @param aftetSaleServer
	 * @return
	 */
	public Result editAftetSaleServe(AftetSaleServer aftetSaleServer);
	
	/**
	 * 根据服务主题查询客户服务
	 * @param theme
	 * @return
	 */
	public List<AftetSaleServer> findByTheme(String theme, int curpage, int pagesize);
	
	/**
	 * 根据服务主题查询客户服务的数量
	 * @param theme
	 * @return
	 */
	public Long countByTheme(String theme);
	
}
